package demo.j2ee;

import javax.validation.Valid;
import javax.validation.Validation;
import javax.validation.ValidatorFactory;

public class Validate {

	@Valid
	public void test001(){}
	
	public void test002(){
		@SuppressWarnings("unused")
		ValidatorFactory factory = Validation.buildDefaultValidatorFactory();
	}
	
//	public void test003() {
//		Configuration configuration = Validation.byDefaultProvider()
//				.providerResolver(new MyResolverStrategy())
//				.configure();
//		ValidatorFactory factory = configuration.buildValidatorFactory();
//	}
}
